package exception;

public class ExceptionMethods {

    public static void main(String[] args) {
        try {
            throw new Exception("New Exception+");
        } catch (Exception e) {
            System.out.println("getMessage() " + e.getMessage());
            System.out.println("getLocalizedMessage() " + e.getLocalizedMessage());
            System.out.println("printStackTrace()");
            e.printStackTrace(System.out);
        }
    }
}
